package router

import (
	"example.com/m/v2/controllers"
	"github.com/gin-gonic/gin"
)

func SetupUserRoutes(r *gin.RouterGroup, tc *controllers.UserController) {
	r.GET("/users", tc.GetUserList)
	r.GET("/users/:id", tc.GetUserInfo)
	r.PUT("/users", tc.Update)
	r.DELETE("/users/:id", tc.Delete)
	r.POST("/users/login", tc.Login)
	r.POST("/users", tc.Create)
	r.GET("/users/GetCalendarInfo", tc.GetCalendarInfo)
}
